<div class="row m-n">
    <div class="crumbs-bar">
        <div yb-crumbs></div>
    </div>
    <div tabset type="tab">
        <div tab heading="资料管理" active="activeFlag[0]" ng-click="changeTab(0)">
            <div class="main-area d-b-15">
                <div yb-table-fixed class="table-fixed-wrap">
                    <div class="th-scroll-x">
                        <table class="table-fixed border-none" width="800">
                            <thead>
                                <tr>
                                    <th width="80%">文件分类</th>
                                    <th width="20%">操作</th>
                                </tr>
                            </thead>
                        </table>
                    </div>
                    <div class="td-scroll" ng-show="dataList.length > 0">
                        <table class="table-fixed border-none" width="800">
                            <tbody ng-repeat="item in dataList track by $index" class="border-none">
                                <tr>
                                    <td width="80%" class="spill-dots" title="{{item.categoryName}}">
                                        {{item.categoryName}}
                                    </td>
                                    <td width="20%" class="font-0">
                                        <button class="btn btn-operate m-r-xs" ng-click="editData(item)"
                                                ng-disabled="!btnPermission.weChatDocumentEdit" title="{{!btnPermission.weChatDocumentEdit?'无权限执行此操作':''}}">编辑</button>
                                    </td>
                                </tr>
                            </tbody>
                        </table>
                    </div>
                    <div class="no-data w-full text-center p-t" ng-show="root.children.length === 0">暂时没有数据</div>
                </div>
            </div>
        </div>
        <div tab heading="编辑" active="activeFlag[1]" ng-if="activeFlag[1]">
            <div class="main-area d-t-35 d-b-60">
                <form name="printForm" class="main-wrap form-horizontal single-col p-t-xs clearfix" novalidate>
                    <div class="panel-bar clearfix m-b">
                        <div class="pull-left">
                            <i></i>文件列表
                        </div>
                    </div>
                    <div class="form-group">
                        <div class="col-xs-12 wrapper-none" >
                            <div>
                                <ul class="enclosureList">
                                    <li ng-repeat="item in fileList">
                                        <p class="one-row">文件名:</p>
                                        <p class="two-row btn-operate" ng-click="downloadAttach(item.id)" title="{{item.fileName}}">{{item.fileName}}</p>
                                        <div>
                                            <button class="btn btn-link btn-xs" ng-click="deleteEditDoc($index, item.id)">
                                                <i class="glyphicon glyphicon-trash"></i>
                                            </button>
                                        </div>
                                    </li>
                                    <li class="addEnclosure" ng-if="fileList.length<30">
                                        <a ngf-select="uploadDoc($file)">
                                            <i class="glyphicon glyphicon-plus"></i>
                                            <br>
                                            添加附件
                                        </a>
                                    </li>
                                </ul>
                            </div>
                        </div>
                    </div>
                </form>
            </div>
        </div>
    </div>
</div>